﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SDT.Lib.Paging;
using SDT.Model;
using SDT.Systems;
using System.Web.Mvc;
using System.Web.UI.WebControls;

namespace SDT.Admin.ViewModels
{
    /// <summary>
    /// Author: Takamaru Nguyen
    /// Date: 30/06/2011
    /// </summary>
    public class ProductAttributeViewModels
    {
        public IPagedList<ProductAttribute> ProductAttributes;
        public string Keyword;
    }

    /// <summary>
    /// Author: Takamaru Nguyen
    /// Date: 30/06/2011
    /// </summary>
    public class ProductAttributeInputModels
    {
        public ProductAttribute ProductAttributes = new ProductAttribute();
        public List<SelectListItem> ListType
        {
            get
            {
                SelectListItem item = new SelectListItem();
                item.Text = "CheckBox";
                item.Value = "1";
                item.Selected = this.Types == 1 ? true : false;
                List<SelectListItem> listI = new List<SelectListItem>();
                listI.Add(item);

                return listI;
            }
        }

        public short Types;
    }
}
